package com.cw.war.ui
{
	import flash.utils.Dictionary;

	/**
	 * 
	 * @author elvisjiang
	 * @data 2012-6-16
	 */	
	public class BoxManager
	{
		private static var boxMap:Dictionary = new Dictionary();
		
		public static function addBox(box:AbstractPopup):void
		{
			boxMap[box] = "box";
		}
		
		public static function removeBox(box:AbstractPopup):void
		{
			delete boxMap[box];
		}
		
		public static function closeAllBox():void
		{
			for (var obj:* in boxMap)
			{
				obj.close();
			}
		}
		
	}
}